<template>
  <div class="LoginBody">
    <div class="Login">
      <div class="LoginIcon">
        <div>
          <img src="../../assets/u157.png" alt="" width="100" height="100">
        </div>
        <div>
          <span>华丰美寓</span>
        </div>
        <div>
          <h3>智能公寓出租平台-管理后台</h3>
        </div>
      </div>
      <div class="LoginInput">
        <h4>用户登录</h4>
        <div class="LoginFrom">
          <div class="LoginUser">
            <input type="text" placeholder="用户名">
          </div>
          <div class="LoginPassword">
            <input type="password" placeholder="密码">
          </div>
          <div>
            <span class="ForgetPassword" @click="ForgetPassword">忘记密码 ？</span>
          </div>
          <div>
            <button class="LoginButton">登录</button>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Login',
  data () {
    return {

    }
  },
  methods: {
    ForgetPassword () {
      this.$router.push('/ForgetPassword')
    }
  }
}
</script>

<style scoped>
  .LoginBody {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: url("../../assets/timg.jpg") no-repeat;
  }

  .Login {
    background: #ffffff;
    top: 50%;
    width: 656px;
    margin: 0 auto;
    position: relative;
    transform: translateY(-50%);
    height: 227px;
    border-radius: 15px;
  }

  .LoginIcon {
    display: inline-block;
    position: absolute;
    text-align: center;
    left: 2%;
    top: 11%;
    width: 55%;
  }

  .LoginInput {
    display: inline-block;
    position: absolute;
    text-align: center;
    height: 180px;
    border-left: 1px solid #E4E4E4;
    right: 2%;
    top: 11%;
    width: 45%;
  }
  .LoginFrom{
    width: 100%;
  }
  .LoginUser,.LoginPassword{
    width: 60%;
    height: 30px;
    border: 1px solid #C3C3C3;
    padding-left: 10px;
    border-radius: 14px;
    margin-top: 4%;
    margin-left: 18%;
    display: flex;
    justify-content:center;
    align-items:Center;
  }
  .ForgetPassword{
    font-size: 12px;
    margin-top: 2%;
    color: #92D7FF;
    margin-right: -112px;
  }
  .LoginButton{
    margin-top: 2%;
    width: 63%;
    border-radius: 14px;
    height: 30px;
    color: #ffffff;
    background: #53C3F1;
  }
  .LoginButton:hover,.ForgetPassword:hover{
    cursor:pointer;
  }
</style>
